#include "stdafx.h"
#include "outlook_btn.h"


outlook_btn::outlook_btn()
{
	this->is_pane_ = FALSE;
	this->pane_index_ = 0;
}

outlook_btn::~outlook_btn()
{

}

BEGIN_MESSAGE_MAP(outlook_btn, CButton)
	//{{AFX_MSG_MAP(CMyButton)
	ON_CONTROL_REFLECT(BN_CLICKED, OnClicked)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

void 
outlook_btn::OnClicked()
{
	if( this->is_pane_ )
	{
		::SendMessage(this->notify_hwnd_, WM_OUTLOOKPANE_CLICK_BTN, this->pane_index_, this->index_);
	}
	else
	{
		::PostMessage(this->notify_hwnd_, WM_OUTLOOK_CLICK_BTN, this->index_, 0);
	}
}
